Optimal. Leaf size=220 \[ \frac{d (f x)^{m+1} e^{-\frac{a (m+1)}{b n}} \left (c x^n\right )^{-\frac{m+1}{n}} \left (a+b \log \left (c x^n\right )\right )^p \left (-\frac{(m+1) \left (a+b \log \left (c x^n\right )\right )}{b n}\right )^{-p} \text{Gamma}\left (p+1,-\frac{(m+1) \left (a+b \log \left (c x^n\right )\right )}{b n}\right )}{f (m+1)}+\frac{e x^{r+1} (f x)^m e^{-\frac{a (m+r+1)}{b n}} \left (c x^n\right )^{-\frac{m+r+1}{n}} \left (a+b \log \left (c x^n\right )\right )^p \left (-\frac{(m+r+1) \left (a+b \log \left (c x^n\right )\right )}{b n}\right )^{-p} \text{Gamma}\left (p+1,-\frac{(m+r+1) \left (a+b \log \left (c x^n\right )\right )}{b n}\right )}{m+r+1} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.256212, antiderivative size = 220, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 4, integrand size = 25, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.16, Rules used = {2353, 2310, 2181, 20} \[ \frac{d (f x)^{m+1} e^{-\frac{a (m+1)}{b n}} \left (c x^n\right )^{-\frac{m+1}{n}} \left (a+b \log \left (c x^n\right )\right )^p \left (-\frac{(m+1) \left (a+b \log \left (c x^n\right )\right )}{b n}\right )^{-p} \text{Gamma}\left (p+1,-\frac{(m+1) \left (a+b \log \left (c x^n\right )\right )}{b n}\right )}{f (m+1)}+\frac{e x^{r+1} (f x)^m e^{-\frac{a (m+r+1)}{b n}} \left (c x^n\right )^{-\frac{m+r+1}{n}} \left (a+b \log \left (c x^n\right )\right )^p \left (-\frac{(m+r+1) \left (a+b \log \left (c x^n\right )\right )}{b n}\right )^{-p} \text{Gamma}\left (p+1,-\frac{(m+r+1) \left (a+b \log \left (c x^n\right )\right )}{b n}\right )}{m+r+1} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2353
Rule 2310
Rule 2181
Rule 20
Rubi steps
\begin{align*} \int (f x)^m \left (d+e x^r\right ) \left (a+b \log \left (c x^n\right )\right )^p \, dx &=\int \left (d (f x)^m \left (a+b \log \left (c x^n\right )\right )^p+e x^r (f x)^m \left (a+b \log \left (c x^n\right )\right )^p\right ) \, dx\\ &=d \int (f x)^m \left (a+b \log \left (c x^n\right )\right )^p \, dx+e \int x^r (f x)^m \left (a+b \log \left (c x^n\right )\right )^p \, dx\\ &=\left (e x^{-m} (f x)^m\right ) \int x^{m+r} \left (a+b \log \left (c x^n\right )\right )^p \, dx+\frac{\left (d (f x)^{1+m} \left (c x^n\right )^{-\frac{1+m}{n}}\right ) \operatorname{Subst}\left (\int e^{\frac{(1+m) x}{n}} (a+b x)^p \, dx,x,\log \left (c x^n\right )\right )}{f n}\\ &=\frac{d e^{-\frac{a (1+m)}{b n}} (f x)^{1+m} \left (c x^n\right )^{-\frac{1+m}{n}} \Gamma \left (1+p,-\frac{(1+m) \left (a+b \log \left (c x^n\right )\right )}{b n}\right ) \left (a+b \log \left (c x^n\right )\right )^p \left (-\frac{(1+m) \left (a+b \log \left (c x^n\right )\right )}{b n}\right )^{-p}}{f (1+m)}+\frac{\left (e x^{1+r} (f x)^m \left (c x^n\right )^{-\frac{1+m+r}{n}}\right ) \operatorname{Subst}\left (\int e^{\frac{(1+m+r) x}{n}} (a+b x)^p \, dx,x,\log \left (c x^n\right )\right )}{n}\\ &=\frac{d e^{-\frac{a (1+m)}{b n}} (f x)^{1+m} \left (c x^n\right )^{-\frac{1+m}{n}} \Gamma \left (1+p,-\frac{(1+m) \left (a+b \log \left (c x^n\right )\right )}{b n}\right ) \left (a+b \log \left (c x^n\right )\right )^p \left (-\frac{(1+m) \left (a+b \log \left (c x^n\right )\right )}{b n}\right )^{-p}}{f (1+m)}+\frac{e e^{-\frac{a (1+m+r)}{b n}} x^{1+r} (f x)^m \left (c x^n\right )^{-\frac{1+m+r}{n}} \Gamma \left (1+p,-\frac{(1+m+r) \left (a+b \log \left (c x^n\right )\right )}{b n}\right ) \left (a+b \log \left (c x^n\right )\right )^p \left (-\frac{(1+m+r) \left (a+b \log \left (c x^n\right )\right )}{b n}\right )^{-p}}{1+m+r}\\ \end{align*}
Mathematica [A] time = 0.428966, size = 200, normalized size = 0.91 \[ x^{-m} (f x)^m \left (a+b \log \left (c x^n\right )\right )^p \left (\frac{d \exp \left (-\frac{(m+1) \left (a+b \log \left (c x^n\right )-b n \log (x)\right )}{b n}\right ) \left (-\frac{(m+1) \left (a+b \log \left (c x^n\right )\right )}{b n}\right )^{-p} \text{Gamma}\left (p+1,-\frac{(m+1) \left (a+b \log \left (c x^n\right )\right )}{b n}\right )}{m+1}+\frac{e \exp \left (-\frac{(m+r+1) \left (a+b \log \left (c x^n\right )-b n \log (x)\right )}{b n}\right ) \left (-\frac{(m+r+1) \left (a+b \log \left (c x^n\right )\right )}{b n}\right )^{-p} \text{Gamma}\left (p+1,-\frac{(m+r+1) \left (a+b \log \left (c x^n\right )\right )}{b n}\right )}{m+r+1}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 1.322, size = 0, normalized size = 0. \begin{align*} \int \left ( fx \right ) ^{m} \left ( d+e{x}^{r} \right ) \left ( a+b\ln \left ( c{x}^{n} \right ) \right ) ^{p}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: RuntimeError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left ({\left (e x^{r} + d\right )} \left (f x\right )^{m}{\left (b \log \left (c x^{n}\right ) + a\right )}^{p}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (e x^{r} + d\right )} \left (f x\right )^{m}{\left (b \log \left (c x^{n}\right ) + a\right )}^{p}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]